import Vue from 'vue'
import VueRouter from 'vue-router'
import tabbar from './modules/tab-bar'
import home from './modules/home'
import qa from './modules/qa'
import video from './modules/video'
import my from './modules/my'

Vue.use(VueRouter)

const routes = [
  // 底部导航栏路由
  ...tabbar,
  // 主要组件路由
  ...my,
  ...qa,
  ...video,
  ...home
]

const router = new VueRouter({
  routes
})

export default router
